home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12273 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1013 b 

  1. Path: solon.com!not-for-mail
  2. From: Jens M Andreasen <jens-and@dsv.su.se>
  3. Newsgroups: comp.lang.c.moderated,comp.lang.c
  4. Subject: Re: ada-like naming scheme?
  5. Date: 29 Mar 1996 22:01:00 -0600
  6. Organization: Digital Solutions
  7. Sender: clc@solutions.solon.com
  8. Approved: clc@solutions.solon.com
  9. Message-ID: <4jibls$8am@solutions.solon.com>
  10. References: <4j41gd$nij@solutions.solon.com> <4ja3md$p5e@solutions.solon.com>
  11. NNTP-Posting-Host: solutions.solon.com
  12.  
  13.  
  14.  
  15. On 26 Mar 1996, Richard Krehbiel wrote:
  16.  
  17. > >   ada.text_io.get(x);
  18. -<snip>-
  19. > >   integer_sort.quicksort(int_array);
  20. > >   integer_sort.selection_sort(int_array);
  21.  
  22. > >From curiosity, why not just adopt a naming convention that prepends
  23. > the package/module names to the function name?  Why not simply call
  24. > them int_sort_quicksort() and float_sort_quicksort()?
  25. With a slight change, the dot.approach could be useful if the app at an 
  26. earlier stage had realized what method to use and changed the pointer 
  27. accordingly. (integer.sort)
  28.  
  29. // Jens M Andreasen
  30.